from selenium.webdriver.common.service import Service

class Base():
    def __init__(self,driver):
        self.driver = driver

    def open_url(self,url):
        self.driver.get(url)

    def find_element(self,loc):
        self.find_element(*loc)

    def send_keys(self,loc,text):
        self.send_keys(loc,text)

    def click(self,loc):
        self.driver.find_element(loc).click()